<template>
  <div class="error-404">
    <div class="error-btn-wrap">
      <div class="error-return-home color-white" @click='goIndex()'>返回首页</div>
      <div class="error-go-back color-white" @click='goBack()'>返回上一页</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'error404',
    methods: {
      goBack() {
        this.$router.go(-1);
      },
      goIndex() {
        this.$router.push('/')
      }
    }
  }
</script>

<style scoped>
.error-404 {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(/static/images/error404.jpg) no-repeat center 100% #C6E6FD;
}
.error-btn-wrap {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  width: 200px;
  /*padding: 10px 0;*/
  position: absolute;
  left: 50%;
  top: 72%;
  margin-left: -100px;
}
.error-return-home, .error-go-back {
  transition: .5s;
  padding: 5px 15px;
  border-radius: 5px;
  border: 1px solid #2EA042;
  font-size: 14px;
  background: #00BB15;
}
.error-return-home:hover, .error-go-back:hover {
  background: #fff;
  color: #00BB15;
  cursor: pointer;
}
</style>
